package ca.cbc.msb.mq;

/**
 * receive message from message queue. perform business logic according to the message from different queue. Implementations should be thread safe.
 * 
 * @author William Wei
 */
public interface MSBMessageConsumer extends Runnable{

	/**
	 * start this runnable instance.
	 */
    public void start();
    
    /**
     * terminate this runnable instance. should also release all resources here.
     */
    public void stop();
    public void setHandler(MessageHandler handler);
}
